#include<iostream>
#include<vector>
#include<string>

using namespace std;

void is_full(vector<vector<int>>&board,row)//第一问
{
		int flag=0;
		for(int i=0;i<board[0].size();i++)
		{
				if(board[row-1][i]==0)
				{
						flag=1;
						break;
				}
		}
		if(flag==0)//消除
		{
				for(int i=0;i<board[0].size();i++)
				{
						board[row-1][i]=0;
				}
		}
}

void lock_dot(vector<vector<int>>&board,vector<int> pos)
{
		if(board[pos[0]][pos[1]]==0)
		{
				board[pos[0]][pos[1]]=1;
		}
}

void lock_price(vector<vector<int>>&board,vector<int> pos,string piece)//假设pos是形状最上方、最左边为1的点。
{
		switch(piece)
		{
				case "L":
						if(pos[0]+2<board.size()&&pos[1]+1<board[0].size())//
						{
								if(board[pos[0]][pos[1]]==0&&board[pos[0]+1][pos[1]]==0&&board[pos[0]+2][pos[1]]==0&&board[pos[0]+2][pos[1]+1]==0)
								{
										board[pos[0]][pos[1]]=1;
										board[pos[0]+1][pos[1]]=1;
										board[pos[0]+2][pos[1]]=1;
										board[pos[0]+2][pos[1]+1]=1;     
								}
						}
						break;
		}
}

int main()
{
		return 0;
}
